# encoding: utf-8

class Processor < ActiveRecord::Base
  belongs_to  :task

  belongs_to  :user

  # Validations
  validates :user_id,
            :presence     =>  true,
            :numericality =>  { :only_integer =>  true,
                                :greater_than =>  0  }

  validates :task_id,
            :presence     =>  true,
            :numericality =>  { :only_integer =>  true,
                                :greater_than =>  0  }
end

# == Schema Information
#
# Table name: processors
#
#  id         :integer         not null, primary key
#  user_id    :integer
#  task_id    :integer
#  created_at :datetime
#  updated_at :datetime
#

